
import { RouteRecordRaw } from 'vue-router'
import { BaseChild } from '@/router/modular/index'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'default',
    component: () => import('@/views/login/index.vue'),
    meta: {
      title: '登录',
      NotCheck: true
    }
  }, {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      title: '登录',
      NotCheck: true
    }
  },
  {
    path: '/index',
    name: 'layout',
    redirect: '/home/index/index',
    component: () => import('@/views/layout/index.vue'),
    meta: {
      title: '布局页'
    },
    children: BaseChild
  },
  {
    path: "/:pathMatch(.*)",
    name: 'NotFound',
    component: () => import('@/views/ErrorPage/404.vue'),
    meta: {
      title: "页面不存在"
    }
  },
  {
    path: "/NoPermissions",
    name: 'NoPermissions',
    component: () => import('@/views/ErrorPage/403.vue'),
    meta: {
      title: "你无权访问该页面"
    }
  }
]


export default routes;